package com.ruyuan.course.basic.biz.enums;

/**
 * @author demo
 * version: 1.0
 * Description:错误编码的枚举
 **/
public enum ErrorCodeEnum {


    /**
     * 成功
     */
    SUCCESS("200", "成功"),

    /**
     * 失败
     */
    ERROR("500", "失败"),
    ;

    /**
     * 编码
     */
    private String code;

    /**
     * 消息
     */
    private String message;

    ErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}